package com.baoy.cloud.xxx.sso.dao;

import com.baoy.cloud.xxx.sso.model.User;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author baoy.bao
 * @since 2018-07-27
 */
public interface UserMapper extends BaseMapper<User> {

    Set<String> queryPerByUserId(String userId);

    @Select("select * from t_user where username=#{username}")
    User findByUsername(String username);

}
